import Mock from 'mockjs'

// 3、mock接口实现登录接口，返回用户信息和token
Mock.mock('/getlogin','post',{
    username:'admin',
    password:123456,
    token:'DALIFGfaligfblawuie325537',
    phone:/^1[3-9]\d{9}$/,
    photo:'https://img0.baidu.com/it/u=2955332398,1712446780&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto?sec=1718989200&t=500f1fdc0411ce9c603dd75c0cbb3448'
});

// 10、mock添加购物车接口，点击添加购物车添加商品到购物车
Mock.mock('/getcart','get',{
    list:[
        {
            id:1,
            title:'初医生(Dr.Chu)医用外科口罩成人',
            price:13.96,
            num:3,
            img:'https://tse4-mm.cn.bing.net/th/id/OIP-C.N0USLldg_iKDGVKT12vB4AHaEK?w=280&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7'
        },
        {
            id:2,
            title:'MT HELMETS西班牙法律规范苏格兰和如工号牌恶如我会发',
            price:398.46,
            num:1,
            img:'https://tse2-mm.cn.bing.net/th/id/OIP-C.c4XJC3rxD525vJOR1KLnGwHaE7?w=265&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7'
        }
    ]
});
